<div class="topBar">
      <div class="topTitle">销售趋势列表</div>
      <div class="topButton"><a href="/admin/add-trends" target="_self"><img src="/images/admin/addNew.gif"/></a></div>
    </div>
	
	<table cellspacing="0" cellpadding="0" border="0" class="listTable">
	<tbody>
	  <tr class="thead">
		<td>ID</td>
		<td>艺术家</td>
		<td>显示顺序</td>
		<td>趋势</td>
		<td>操作</td>
	  </tr>
	  <?php
	  foreach ($this->trends as $trend){
	  	?>
	 
	  <tr>
		<td><?php echo $trend->id;?></td>
		<td><a target="_self" href="/admin/edit-trends/id/<?php echo $trend->id;?>"><?php echo $trend->getArtistObj()->name;?></a></td>
		<td><?php echo $trend->order;?></td>
		<td><?php echo ($trend->trends == 'U') ? "上升" : "下降";?></td>
		<td><a target="_self" href="/admin/edit-trends/id/<?php echo $trend->id;?>">编辑</a>&nbsp;&nbsp;&nbsp;&nbsp;<a target="_self" href="/admin/delete-trends/id/<?php echo $trend->id;?>">删除</a></td>
	  </tr>
	  <?php
	   }
	  ?>
	</tbody>
	</table>
	
